﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Main.Master" AutoEventWireup="true" CodeBehind="tv_list.aspx.cs" Inherits="Web.Solist.tv_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link type="text/css" rel="stylesheet" href="css/sosuo.css" />
<SCRIPT language="javascript" src="../js/ntab.js" type="text/javascript"></SCRIPT>
<SCRIPT type=text/javascript>
    function page_link(href) {
	document.forms[1].action=href;
	document.forms[1].submit();
	return false;
}
window.onload = function() {
//    var url = unescape(location.href);
//    var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
//    var paraObj = {}
//    for (i = 0; j = paraString[i]; i++) {
//        paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
//        if (j.substring(0, j.indexOf("=")).toLowerCase() == "key") {
//            document.getElementById("sokey").value = j.substring(j.indexOf("=") + 1, j.length)
//        }
//    }
}

</SCRIPT>
<title>商家视频搜索---菠萝菠萝蜜|5151feel.com</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    <DIV id=er_midone>您现在所在位置：<A href="#">菠萝菠萝蜜网</A> &gt; 
商家列表</DIV>
<DIV id=er_midtwo><!--左边列表开始-->
<DIV class=left>
<DIV class=listop><SPAN></SPAN> </DIV><!--列表主体部分开始-->

<DIV class=listmid><!--搜索控件开始-->
<DIV class=serch>
<form name="soFrm" method="get">
分类：   <select  id="_ctl0_ContentPlaceHolder1_ddlCorpType" name="typeid">
	<option selected="selected" value="0">请选择</option>
	<option value="1">餐饮美食</option>
	<option value="2">夜场酒吧</option>
	<option value="3">娱乐休闲</option>
	<option value="4">旅游度假</option>
	<option value="5">时尚购物</option>
</select> 
  
   <INPUT  name="key" class=inp size=20 style="width:180px" id="sokey"> 
   <INPUT class=pic type=image height=25 width=59 src="images/soso.jpg" onclick="page_link('/solist/tv_list.aspx')" name=search>
    </form></DIV><!--搜索控件结束--><!--商家排队开始-->
<form runat="server" id="frmCorp">
  <pan:SmartGridView ID="gdvCorpList" runat="server"  AllowPaging="True" 
        AllowSorting="True"  AutoGenerateColumns="False"
           PageSize="10"  BorderWidth="0px" Width="435px"    DataKeyNames="CorpID"  ShowHeader="False"
         BorderStyle="None" CellPadding="0" GridLines="Vertical" 
        DataSourceID="odsSoCorpList" >
        <Columns>
        <asp:TemplateField>
        <ItemTemplate>
               <DIV class=tv>
                <DIV class=tu>
                <A href="/corp/corpview.aspx?cid=<%# Eval("CorpID")%>" class="playpic" style="width:95px">
                <IMG class="pic_new" height=72 src='/Shared/Controls/ImageHandler.ashx?p=<%# Eval("ImageSrc") %>&s=92' width="90px" border=0><em></em> </A></DIV>
                <DIV class=txt>
                <P class=ph><FONT color="#ff0000">[人气]：<%# Eval("hits") %> </FONT></P>
                <P class=ph>
                <H1><A href="/corp/corpview.aspx?cid=<%# Eval("CorpID")%>"><%# Eval("Title") %></A></H1>
                <P></P>
                <P class=ph>
                <H2>分类：</H2><%# Web.AppCode.Sys_Common.GetSys_CorpType(Eval("TypeID").ToString()) %>
                <P></P>
                <P class=ph>
                <H2>地址：</H2><%# Eval("Address") %>
                <P></P></DIV>
                <DIV class=ico>
                <IMG height="22" src='<%#Eval("TypeID","/images/solist/tu{0}.jpg") %>' width="19"  > </DIV>
                <DIV class=date><%# Eval("CreateOn","{0:yyyy-MM-dd}") %> </DIV></DIV>
                </ItemTemplate>
        </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
        <div style='text-align:left;margin-left:20px;line-height:20px;margin-bottom:10px;'>
		   <p style='color:#FF4E00;font-size:14px;font-weight:bold;'> 抱歉！没有搜索到相关信息 ！<br /><br /></p>
			可能的原因有：<br />
			1、条件不正确<br />
			2、没有满足搜索条件的信息。<br /></div>
        
        </EmptyDataTemplate>
        <CustomPagerSettings PagingMode="Default" TextFormat="<font size='2px'> 每页{0}条/共{1}条  第{2}页/共{3}页</font>   " />
        <PagerSettings Position="TopAndBottom" PageButtonCount="13" FirstPageText="首页" PreviousPageText="上一页"
            NextPageText="下一页" LastPageText="末页" />
    </pan:SmartGridView>	
    
    <asp:ObjectDataSource ID="odsSoCorpList" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="So" 
        TypeName="Model.CorpInfoData">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="" Name="key" QueryStringField="key" Type="String" />
            <asp:QueryStringParameter Name="type" QueryStringField="typeid" Type="String" />
            <asp:CookieParameter CookieName="citycode" Name="city" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
<!--商家排队结束--></DIV><!--列表主体部分结束-->
</form>  
<DIV class=listbt></DIV></DIV><!--左边列表结束-->



<DIV class=right2>

<IFRAME marginWidth=0 marginHeight=0 
src="right_iframe.aspx" frameBorder=0 width=505 scrolling=no 
height=1175></IFRAME></DIV></DIV>
</div>

</asp:Content>
